home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 73
/
PCMania CD73_1.iso
/
sharewar
/
utiles
/
viff
/
makefile.djg
< prev
next >
Wrap
Makefile
|
1997-12-10
|
2KB
|
76 lines
# ####################### -*- Mode: Text -*- ###########################
#
# makefile. -- viff makefile for DJGPP
#
# Copyright (C) 1996-1997 Richard Flamsholt S0rensen. All rights reserved.
#
# Author : Richard Flamsholt S0rensen
# Created On : Sat Jul 27 20:23:25 1996
# Last Modified By: Richard Flamsholt S0rensen
# Last Modified On: Wed Dec 10 10:57:50 1997
# Update Count : 168
# Revision History: None
#
# COMMENTS
# HISTORY
# ######################################################################
###########
# Edit these to point to your DJGPP and curses directories
#
CC_DIR = d:/util/djgpp
CURSES = d:/util/djgpp/contrib/pdcurs22
#
###########
SYSTEM = -DWIN32 -UMSDOS -UUNIX -UBC31 -UMSVC -USCO
CC = $(CC_DIR)/bin/gcc
LINK = $(CC_DIR)/bin/gcc
WARNINGS = -Wall -pedantic
LIB=$(CC_DIR)/lib
INCLUDE=$(CC_DIR)/include
PATH=$(CC_DIR)/bin
# uncomment these five lines to use the Mallory memory checker:
#MAL_INC = -I$(MAL_DIR)
#MAL_OBJ = mallory.o
#MAL_DIR = d:/util/mallory
#MAL_STDINCL= -DMALLORY_STDINCL=$(CC_DIR)/include
#MAL_FLAGS = -DMALLORY_NO_ZALLOC -DSHOW_MEM_USAGE
DEBUG =
LDEBUG =
OPTIMIZE =
CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(SYSTEM) $(MAL_STDINCL)
LFLAGS = $(LDEBUG)
INCLUDES = $(MAL_INC) -I. -I$(INCLUDE) -I$(CURSES)/include
LIBS = $(CURSES)/lib/libcurso.a
all: viff.exe
viff.exe: viff.o viffutil.o viffedit.o date $(MAL_OBJ)
@echo linking...
@$(LINK) $(LFLAGS) viff.o viffutil.o viffedit.o viffdate.o $(MAL_OBJ) -o viff.exe $(LIBS)
viff.o: viff.c viff.h viffutil.h
@$(CC) $(CFLAGS) $(INCLUDES) -c viff.c
viffutil.o: viffutil.c viff.h viffutil.h
@$(CC) $(CFLAGS) $(INCLUDES) -c viffutil.c
viffedit.o: viffedit.c viff.h
@$(CC) $(CFLAGS) $(INCLUDES) -c viffedit.c
date:
@$(CC) $(CFLAGS) $(INCLUDES) -c viffdate.c
mallory.o: $(MAL_DIR)/mallory.c
@$(CC) $(CFLAGS) $(MAL_FLAGS) -I$(MAL_DIR) -I$(INCLUDES) $(MAL_STDINCL) -c $(MAL_DIR)/mallory.c